import service from '@/utils/request';

//查询个人信息
export const informationService = () =>{
    return service.get('/user/userInfo')
}

//修改个人信息
export const updateInformationService = (userData) =>{
    return service.put('/user/update',userData)
}

//上传头像
export const uploadService = (formData) =>{
    return service.post('/upload',formData)
}

//更新头像信息
export const updateAvatarService = (avatarUrl) =>{
    return service.post(`/user/updateAvatar?avatarUrl=${avatarUrl}`)
}
